package com.spring.library.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author danty
 * @since 2024-09-19
 */
@Data
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "book_id", type = IdType.AUTO)
    private Integer bookId;

    private String bookName;

    private String bookIsbn;

    private String bookPress;

    private String bookAuthor;

    private Integer bookPagination;

    private BigDecimal bookPrice;

    private LocalDateTime bookUploadtime;

//    private String bookImage;

//    public String getBookImage() {
//        return bookImage;
//    }

//    public void setBookImage(String bookImage) {
//        this.bookImage = bookImage;
//    }

    private String bookStatus;

    private String bookBorrower;

    private String bookBorrowtime;

    private String bookReturntime;

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }
    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }
    public String getBookIsbn() {
        return bookIsbn;
    }

    public void setBookIsbn(String bookIsbn) {
        this.bookIsbn = bookIsbn;
    }
    public String getBookPress() {
        return bookPress;
    }

    public void setBookPress(String bookPress) {
        this.bookPress = bookPress;
    }
    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }
    public Integer getBookPagination() {
        return bookPagination;
    }

    public void setBookPagination(Integer bookPagination) {
        this.bookPagination = bookPagination;
    }
    public BigDecimal getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(BigDecimal bookPrice) {
        this.bookPrice = bookPrice;
    }
    public LocalDateTime getBookUploadtime() {
        return bookUploadtime;
    }

    public void setBookUploadtime(LocalDateTime bookUploadtime) {
        this.bookUploadtime = bookUploadtime;
    }
    public String getBookStatus() {
        return bookStatus;
    }

    public void setBookStatus(String bookStatus) {
        this.bookStatus = bookStatus;
    }
    public String getBookBorrower() {
        return bookBorrower;
    }

    public void setBookBorrower(String bookBorrower) {
        this.bookBorrower = bookBorrower;
    }
    public String getBookBorrowtime() {
        return bookBorrowtime;
    }

    public void setBookBorrowtime(String bookBorrowtime) {
        this.bookBorrowtime = bookBorrowtime;
    }
    public String getBookReturntime() {
        return bookReturntime;
    }

    public void setBookReturntime(String bookReturntime) {
        this.bookReturntime = bookReturntime;
    }

    @Override
    public String toString() {
        return "Book{" +
            "bookId=" + bookId +
            ", bookName=" + bookName +
            ", bookIsbn=" + bookIsbn +
            ", bookPress=" + bookPress +
            ", bookAuthor=" + bookAuthor +
            ", bookPagination=" + bookPagination +
            ", bookPrice=" + bookPrice +
            ", bookUploadtime=" + bookUploadtime +
            ", bookStatus=" + bookStatus +
//            ", bookImage=" + bookImage +
            ", bookBorrower=" + bookBorrower +
            ", bookBorrowtime=" + bookBorrowtime +
            ", bookReturntime=" + bookReturntime +
        "}";
    }
}
